package com.ume.supplier.cn.httputil.http

import android.text.TextUtils

/**
 * Created by joe on 2018/7/2
 */
class RespException(message: String?) : RuntimeException(if (TextUtils.isEmpty(message)) "unknown error" else message) {

    companion object {

        fun isCustomResponseException(throwable: Throwable): Boolean {
            return throwable is RespException
        }
    }
}